package com.fourinone.core;

import java.rmi.server.RemoteServer;
import java.rmi.server.ServerNotActiveException;

/**
 * @author szper
 * @version 1.0
 * @date 2019/10/20 17:23
 */
public class MementoService {
    String getClientIp () {
        String clientIp = null;
        try {
            clientIp = RemoteServer.getClientHost();
        } catch (ServerNotActiveException e) {
            System.out.println("|MementoService| |getClientIp|" + e.toString());
        }
        return clientIp;
    }
}
